/* Contact Us Modal - matches Share Project visual language */

.contact-us-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
	animation: fadeIn 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.contact-us-modal {
    position: relative;
    /* Warmer glassy tone with amber/peach warmth */
    background: linear-gradient(135deg, 
        rgba(45, 30, 20, 0.15), 
        rgba(30, 20, 15, 0.12));
    border: 1px solid rgba(255, 180, 120, 0.25);
    border-radius: 24px;
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.6), 
                0 0 0 1px rgba(255, 200, 140, 0.15) inset,
                0 0 30px rgba(255, 160, 80, 0.08);
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), warmPulse 4s ease-in-out infinite;
    backdrop-filter: blur(140px) saturate(200%);
    -webkit-backdrop-filter: blur(140px) saturate(200%);
    background-clip: padding-box;
}

/* Subtle warm glow overlay */
.contact-us-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
        rgba(255, 180, 100, 0.06) 0%, 
        transparent 50%);
    animation: warmGlow 6s ease-in-out infinite;
    pointer-events: none;
    border-radius: 24px;
    opacity: 0.8;
}

@keyframes warmPulse {
    0%, 100% { 
        box-shadow: 0 34px 70px rgba(0, 0, 0, 0.6), 
                    0 0 0 1px rgba(255, 200, 140, 0.15) inset,
                    0 0 30px rgba(255, 160, 80, 0.08);
    }
    50% { 
        box-shadow: 0 34px 70px rgba(0, 0, 0, 0.6), 
                    0 0 0 1px rgba(255, 200, 140, 0.25) inset,
                    0 0 40px rgba(255, 160, 80, 0.15);
    }
}

@keyframes warmGlow {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* Inherit app default font */
.contact-us-modal, .contact-us-modal * {
	font-family: inherit;
}

.contact-modal-close-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.8);
	font-size: 18px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 10;
}

.contact-modal-close-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
	transform: scale(1.05);
}

.contact-modal-header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 28px 28px 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	position: relative;
	z-index: 1;
}

.formas-logo-circle {
    width: 64px;
    height: 64px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.05);
	border: 2px solid rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
}

.formas-logo-circle img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.contact-header-info {
	flex: 1;
	min-width: 0;
}

.contact-title {
	color: #fff;
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 4px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.contact-subtitle {
	color: rgba(255, 255, 255, 0.5);
	font-size: 13px;
	margin: 0;
	font-weight: 400;
}

.contact-modal-content {
	padding: 20px 28px 28px;
	max-height: calc(85vh - 140px);
	overflow-y: auto;
	position: relative;
	z-index: 1;
}

/* Status pills (sending/success/error) */
.contact-status {
	margin-top: 12px;
	display: none;
	justify-content: center;
}

.contact-status .status-message {
	padding: 12px 24px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 2px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 
	            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
	transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
	animation: slideInStatus 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	position: relative;
	overflow: hidden;
}

.contact-status .status-message::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
	pointer-events: none;
}

.contact-status .status-message.sending {
	background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(33, 150, 243, 0.12));
	color: #bfe3ff;
	border-color: rgba(33, 150, 243, 0.35);
	box-shadow: 0 4px 20px rgba(33, 150, 243, 0.25), 
	            0 0 0 1px rgba(255, 255, 255, 0.2) inset,
	            0 0 30px rgba(33, 150, 243, 0.2);
}

.contact-status .status-message.success {
	background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(76, 175, 80, 0.15));
	color: #66ff66;
	border-color: rgba(255, 255, 255, 0.4);
	box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3), 
	            0 0 0 1px rgba(255, 255, 255, 0.2) inset,
	            0 0 30px rgba(76, 175, 80, 0.2);
}

.contact-status .status-message.error {
	background: linear-gradient(135deg, rgba(244, 67, 54, 0.25), rgba(244, 67, 54, 0.15));
	color: #ff8a80;
	border-color: rgba(255, 255, 255, 0.35);
	box-shadow: 0 4px 20px rgba(244, 67, 54, 0.3), 
	            0 0 0 1px rgba(255, 255, 255, 0.2) inset,
	            0 0 30px rgba(244, 67, 54, 0.2);
}

.contact-type-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.contact-type-option {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px; /* pill */
    padding: 10px 14px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    user-select: none;
    transition: all 0.2s ease;
    white-space: nowrap; /* single line */
}

.contact-type-option:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.2);
}

.contact-type-option.active {
    background: linear-gradient(135deg, rgba(33,150,243,0.18), rgba(33,150,243,0.1));
    border-color: rgba(33,150,243,0.45);
    box-shadow: 0 2px 12px rgba(33,150,243,0.28);
    color: #e6f4ff;
}

.contact-textarea {
	width: 100%;
	min-height: 120px;
	max-height: 360px;
	resize: vertical;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 16px;
	color: #fff;
	font-size: 13px;
	padding: 12px 14px;
	outline: none;
}

.contact-textarea::placeholder {
	color: rgba(255,255,255,0.4);
}

.contact-actions {
    display: flex;
    justify-content: space-between; /* keep Send on the right */
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Small circular attachment thumb inline with pills */
.attachment-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border: 1px solid rgba(255,255,255,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.attachment-circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.contact-add-image-pill {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 999px;
    padding: 0 14px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-add-image-pill:hover {
	border-color: #fff;
	transform: translateY(-1px);
}

.contact-attachment-chip {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    color: #eaeaea;
    border-radius: 999px;
    padding: 0 10px 0 8px;
    height: 36px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-attachment-chip .attachment-avatar {
    position: absolute;
    left: -11px; /* match .user-avatar-header margin-left */
    top: 50%;
    transform: translateY(-50%);
    width: 23px; /* match header avatar size */
    height: 23px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-attachment-chip .attachment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.contact-attachment-chip .attachment-label {
	color: #f0f0f0;
	font-weight: 600;
}

.contact-attachment-chip .attachment-remove-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.7);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.contact-attachment-chip .attachment-remove-btn:hover {
	background: rgba(255,255,255,0.12);
	border-color: #fff;
}

.contact-send-btn {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border: none;
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 0 18px;
    height: 36px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.contact-send-btn:hover {
	background: linear-gradient(135deg, #1976d2, #1565c0);
	box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
	transform: translateY(-1px);
}

.contact-send-btn:active {
	transform: translateY(0);
}

@media (max-width: 768px) {
	.contact-us-modal {
		margin: 20px;
		max-height: calc(100vh - 40px);
		max-width: 100%;
	}
	.contact-modal-header { padding: 20px 20px 16px; }
	.contact-modal-content { padding: 16px 20px 20px; }
	.formas-logo-circle { width: 48px; height: 48px; }
	.contact-type-group { grid-template-columns: 1fr; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes slideInStatus { from { opacity: 0; transform: translateY(-10px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Subtle shine keyframes for Contact Us pill in dropdown */
@keyframes contactShine {
    0% { left: -40%; }
    45% { left: 140%; }
    100% { left: 140%; }
}


