/* ==================== Contact Modal - Enhanced Liquid Glass Design ==================== */

.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overscroll-behavior: contain;
}

.contact-modal.active {
    display: flex;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    animation: fadeIn 0.3s ease;
}

.contact-modal-content {
    position: relative;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(240, 253, 250, 0.98) 100%);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border-radius: 32px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.95) inset,
        0 32px 100px -24px rgba(14, 165, 233, 0.35),
        0 0 120px -50px rgba(16, 185, 129, 0.3),
        0 16px 64px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.12);
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    position: relative;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 165, 233, 0.3) transparent;
}

.contact-modal-content::-webkit-scrollbar {
    width: 8px;
}

.contact-modal-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.contact-modal-content::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.contact-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, 0.5);
}

.contact-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(37, 99, 235, 0.1) 0%, 
        transparent 50%);
    pointer-events: none;
    border-radius: 32px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal-content:hover::before {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Header */
.contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;
    border-bottom: 2px solid rgba(14, 165, 233, 0.1);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(240, 253, 250, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px 32px 0 0;
    position: relative;
}

.contact-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(14, 165, 233, 0.3) 50%,
        transparent 100%);
}

.contact-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
    letter-spacing: -0.5px;
}

.contact-modal-close {
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg,
        rgba(241, 245, 249, 0.8) 0%,
        rgba(226, 232, 240, 0.6) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-modal-close:hover {
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.1) 0%,
        rgba(220, 38, 38, 0.05) 100%);
    color: #ef4444;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.contact-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Form */
.contact-form {
    padding: 40px;
}

/* Form Sections - Group related fields */
.contact-form-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(14, 165, 233, 0.08);
}

.contact-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.contact-form-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Progress Indicator */
.contact-form-progress {
    margin-bottom: 20px;
    position: relative;
}

.contact-form-progress-bar {
    height: 6px;
    background: linear-gradient(90deg,
        rgba(14, 165, 233, 0.2) 0%,
        rgba(16, 185, 129, 0.2) 100%);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) inset;
}

.contact-form-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.contact-form-progress-text {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-align: right;
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Groups */
.contact-form-group {
    margin-bottom: 20px;
    position: relative;
}

/* Two Column Layout */
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-form-row .contact-form-group {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.contact-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.contact-form-icon {
    color: #2563eb;
    flex-shrink: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.contact-form-group:focus-within .contact-form-icon {
    color: #10b981;
    transform: scale(1.1);
    opacity: 1;
}

.contact-form-label .required {
    color: #ef4444;
    margin-left: 2px;
    font-weight: 700;
}

/* Input Fields */
.contact-form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-sizing: border-box;
    position: relative;
}

.contact-form-input:not(:required) {
    opacity: 0.95;
    border-style: dashed;
    border-color: rgba(226, 232, 240, 0.6);
}

.contact-form-input:not(:required):focus {
    opacity: 1;
    border-style: solid;
    border-color: #2563eb;
}

.contact-form-input::placeholder {
    color: #94a3b8;
    opacity: 0.7;
}

.contact-form-input:focus {
    outline: none;
    border-color: #2563eb;
    background: rgba(255, 255, 255, 1);
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.12),
        0 4px 20px rgba(37, 99, 235, 0.18),
        0 0 50px rgba(14, 165, 233, 0.12);
    transform: translateY(-2px);
}

.contact-form-input:focus:valid:not(:placeholder-shown) {
    border-color: #10b981;
    box-shadow:
        0 0 0 4px rgba(16, 185, 129, 0.12),
        0 4px 20px rgba(16, 185, 129, 0.18),
        0 0 50px rgba(16, 185, 129, 0.12);
}

.contact-form-input:valid:not(:placeholder-shown):not(:focus) {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(240, 253, 250, 0.5);
}

/* Real-time validation feedback */
.contact-form-input.validating {
    border-color: #f59e0b;
    animation: pulse-border 1.5s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
    }
}

.contact-form-input.error {
    border-color: #ef4444;
    background: rgba(254, 242, 242, 0.85);
    box-shadow:
        0 0 0 4px rgba(239, 68, 68, 0.12),
        0 4px 20px rgba(239, 68, 68, 0.18);
    animation: shake 0.5s ease-in-out;
}

.contact-form-input.error:focus {
    box-shadow:
        0 0 0 4px rgba(239, 68, 68, 0.18),
        0 4px 24px rgba(239, 68, 68, 0.25);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.contact-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232563eb' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
    cursor: pointer;
}

.contact-form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
    font-family: inherit;
}

/* Help Text */
.contact-form-help {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    margin-bottom: 0;
}

.contact-form-group:focus-within .contact-form-help {
    opacity: 1;
    color: #475569;
}

/* Error Messages */
.contact-form-error {
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 13px;
    color: #ef4444;
    font-weight: 600;
    min-height: 18px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.5;
}

.contact-form-error:not(:empty) {
    opacity: 1;
    transform: translateY(0);
}

.contact-form-error::before {
    content: '⚠';
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    animation: error-pulse 0.6s ease-in-out;
}

@keyframes error-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Success indicator for valid fields */
.contact-form-input.success {
    border-color: #10b981;
    background: rgba(240, 253, 250, 0.6);
    position: relative;
}

.contact-form-input.success::after {
    content: '✓';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-weight: bold;
    font-size: 18px;
    opacity: 0;
    animation: success-fade-in 0.3s ease-in-out 0.2s forwards;
}

@keyframes success-fade-in {
    to {
        opacity: 1;
    }
}

/* Footer (for message field) */
.contact-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 0;
}

.contact-form-char-counter {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s ease;
}

.contact-form-char-counter.warning {
    color: #f59e0b;
}

.contact-form-char-counter.error {
    color: #ef4444;
}

/* Actions */
.contact-form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(14, 165, 233, 0.1);
    position: relative;
}

.contact-form-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(14, 165, 233, 0.3) 50%,
        transparent 100%);
}

.contact-btn-primary,
.contact-btn-secondary {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.contact-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    color: #ffffff;
    box-shadow:
        0 4px 16px rgba(37, 99, 235, 0.3),
        0 0 40px rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.contact-btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.contact-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 6px 24px rgba(37, 99, 235, 0.4),
        0 0 60px rgba(14, 165, 233, 0.3);
}

.contact-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.contact-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow: none;
}

.contact-btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

.contact-btn-secondary {
    background: rgba(241, 245, 249, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #475569;
    border: 2px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-btn-secondary:hover {
    background: rgba(226, 232, 240, 0.9);
    color: #334155;
    border-color: rgba(203, 213, 225, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Success Message */
.contact-form-success {
    display: none;
    padding: 48px 40px;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.contact-form-success.active {
    display: block;
}

.contact-form-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(16, 185, 129, 0.3),
        0 0 60px rgba(16, 185, 129, 0.2);
    position: relative;
}

.contact-form-success-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    opacity: 0.3;
    filter: blur(8px);
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes scaleIn {
    from {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.contact-form-success-icon svg {
    width: 40px;
    height: 40px;
    color: #ffffff;
}

.contact-form-success h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form-success p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Retry Button */
.contact-retry-btn {
    margin-top: 16px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-retry-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

/* Confirmation Dialog */
.contact-confirm-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.contact-confirm-dialog.active {
    display: flex;
}

.contact-confirm-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.contact-confirm-content h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #1e293b;
}

.contact-confirm-content p {
    margin: 0 0 24px 0;
    color: #64748b;
    line-height: 1.6;
}

.contact-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.contact-confirm-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.contact-confirm-btn.cancel {
    background: rgba(241, 245, 249, 0.8);
    color: #475569;
}

.contact-confirm-btn.cancel:hover {
    background: rgba(226, 232, 240, 0.9);
}

.contact-confirm-btn.confirm {
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    color: white;
}

.contact-confirm-btn.confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Network Error Message */
.contact-network-error {
    background: rgba(254, 242, 242, 0.95);
    border: 2px solid #ef4444;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    display: none;
    animation: slideDown 0.3s ease;
}

.contact-network-error.active {
    display: block;
}

.contact-network-error h4 {
    margin: 0 0 8px 0;
    color: #ef4444;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-network-error p {
    margin: 0;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.5;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-modal {
        padding: 0;
    }
    
    .contact-modal-content {
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
        max-width: 100%;
    }
    
    .contact-modal-header {
        padding: 24px 20px;
        border-radius: 0;
        position: sticky;
        top: 0;
        z-index: 10;
        background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(240, 253, 250, 0.95) 100%);
        backdrop-filter: blur(20px);
    }
    
    .contact-modal-header h2 {
        font-size: 22px;
    }
    
    .contact-form {
        padding: 24px 20px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
    
    .contact-form-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .contact-form-group {
        margin-bottom: 20px;
    }
    
    .contact-form-input {
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 14px;
    }
    
    .contact-form-input.success::after {
        right: 12px;
        font-size: 16px;
    }
    
    .contact-form-actions {
        flex-direction: column-reverse;
        gap: 12px;
        margin-top: 20px;
        padding-top: 20px;
        position: sticky;
        bottom: 0;
        background: linear-gradient(to top,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.95) 80%,
            transparent 100%);
        backdrop-filter: blur(10px);
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .contact-btn-primary,
    .contact-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .contact-form-progress {
        margin-bottom: 20px;
    }
    
    .contact-confirm-content {
        padding: 24px 20px;
        margin: 20px;
    }
    
    .contact-confirm-actions {
        flex-direction: column-reverse;
    }
    
    .contact-confirm-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-modal-header {
        padding: 20px 16px;
    }
    
    .contact-form {
        padding: 20px 16px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    .contact-form-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .contact-form-section-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .contact-form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .contact-form-actions {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}
