/* Contact Page Specific Styles */

/* Contact Hero Section */
.contact-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-gold);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    position: relative;
    background: rgba(10, 10, 10, 0.85);
}

[data-theme="light"] .contact-form-section {
    background: rgba(255, 255, 255, 0.92);
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 60px;
    text-align: left;
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(204, 153, 51, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form select {
    cursor: pointer;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Modern Phone Input */
.modern-phone-container {
    position: relative;
}

.modern-phone-input {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s var(--transition);
}

.modern-phone-input:focus-within {
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(204, 153, 51, 0.2);
}

.phone-country-selector {
    display: flex;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-right: 1px solid var(--glass-border);
    min-width: 100px;
    transition: background 0.3s;
}

.phone-country-selector:hover {
    background: rgba(255, 255, 255, 0.1);
}

.phone-flag {
    width: 24px;
    height: 18px;
    margin-right: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-dial-code {
    font-weight: 600;
    color: var(--text-primary);
}

.phone-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--text-muted);
    margin-left: 8px;
    transition: transform 0.3s;
}

.phone-country-selector:hover .phone-arrow {
    transform: translateY(1px);
}

.phone-input-container {
    flex: 1;
}

.phone-number-input {
    border: none !important;
    background: transparent !important;
    padding: 16px 20px !important;
    box-shadow: none !important;
}

.phone-number-input:focus {
    box-shadow: none !important;
}

/* Phone Dropdown */
.phone-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-top: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    max-height: 300px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--transition);
}

.phone-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.phone-search {
    padding: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.phone-search input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.phone-country-list {
    max-height: 250px;
    overflow-y: auto;
}

.phone-country-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-country-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.phone-country-item:last-child {
    border-bottom: none;
}

.country-flag {
    width: 24px;
    height: 18px;
    margin-right: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.country-code {
    font-weight: 600;
    color: var(--primary-gold);
}

/* Domain Chips */
#domain-names-group {
    animation: slideDown 0.3s ease-out;
}

#domain-names-group.hidden {
    display: none;
}

.domain-chips-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 40px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-radius: 0;
}

.domain-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(204, 153, 51, 0.2);
    border: 1px solid rgba(204, 153, 51, 0.4);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-primary);
    animation: chipIn 0.2s ease-out;
}

.domain-chip-remove {
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 12px;
    transition: background 0.3s;
}

.domain-chip-remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

.domain-input-container {
    position: relative;
}

.domain-counter {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

.domain-limit-message {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

/* TLD Chips */
#tld-names-group {
    animation: slideDown 0.3s ease-out;
}

#tld-names-group.hidden {
    display: none;
}

.tld-chips-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 40px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.tld-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(204, 153, 51, 0.3);
    border: 1px solid rgba(204, 153, 51, 0.5);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-primary);
    animation: chipIn 0.2s ease-out;
    font-weight: 500;
}

.tld-chip-remove {
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 12px;
    transition: background 0.3s;
}

.tld-chip-remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tld-input-container {
    position: relative;
}

.tld-counter {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

.tld-limit-message {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

/* Form Actions */
.form-actions {
    margin-top: 20px;
}

.submit-btn {
    width: 100%;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-dark));
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ==================================== */
/* SIMPLE CLEAN PILL BUTTON STYLES */
/* ==================================== */

/* Simple, high-specificity pill button */
.form-actions .pill-submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 16px 32px !important;

    /* Typography */
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;

    /* Pill shape */
    border-radius: 9999px !important;
    border: none !important;
    cursor: pointer !important;

    /* Colors and background */
    background: linear-gradient(135deg, #cc9933, #b38829) !important;

    /* Layout */
    margin: 0 !important;
    outline: none !important;
    box-sizing: border-box !important;

    /* Transitions */
    transition: all 0.3s ease !important;
}

/* Theme colors */
.form-actions .pill-submit-btn,
[data-theme="light"] .form-actions .pill-submit-btn {
    color: #0a0a0a !important;
}

[data-theme="dark"] .form-actions .pill-submit-btn {
    color: #ffffff !important;
}

/* Text styling */
.form-actions .pill-submit-btn .btn-text {
    color: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
}

/* Icon styling - override style.css conflicts */
.form-actions .pill-submit-btn .btn-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
}

/* SVG icon colors */
.form-actions .pill-submit-btn .btn-icon svg,
.form-actions .pill-submit-btn .btn-icon svg path {
    stroke: #0a0a0a !important;
    fill: none !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

[data-theme="light"] .form-actions .pill-submit-btn .btn-icon svg,
[data-theme="light"] .form-actions .pill-submit-btn .btn-icon svg path {
    stroke: #0a0a0a !important;
    fill: none !important;
}

[data-theme="dark"] .form-actions .pill-submit-btn .btn-icon svg,
[data-theme="dark"] .form-actions .pill-submit-btn .btn-icon svg path {
    stroke: #ffffff !important;
    fill: none !important;
}

/* Hover states */
html body .form-actions button.pill-submit-btn:hover,
html .form-actions button.pill-submit-btn:hover,
body .form-actions button.pill-submit-btn:hover,
.form-actions button.pill-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 153, 51, 0.3);
    background: linear-gradient(135deg, #e6b347, #cc9933);
}

/* Active state */
html body .form-actions button.pill-submit-btn:active,
html .form-actions button.pill-submit-btn:active,
body .form-actions button.pill-submit-btn:active,
.form-actions button.pill-submit-btn:active {
    transform: translateY(0);
}

/* Disabled state */
html body .form-actions button.pill-submit-btn:disabled,
html .form-actions button.pill-submit-btn:disabled,
body .form-actions button.pill-submit-btn:disabled,
.form-actions button.pill-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Focus state */
html body .form-actions button.pill-submit-btn:focus,
html .form-actions button.pill-submit-btn:focus,
body .form-actions button.pill-submit-btn:focus,
.form-actions button.pill-submit-btn:focus {
    box-shadow: 0 0 0 3px rgba(204, 153, 51, 0.2);
}

/* ==================================== */
/* LEGACY BUTTON STYLES (KEEP FOR REFERENCE) */
/* ==================================== */

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(204, 153, 51, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-notice {
    margin-top: 20px;
    text-align: center;
}

.form-notice p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Contact Info Cards */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    padding: 40px;
    text-align: center;
    border-radius: 0;
}

.info-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s var(--transition);
    border-radius: 0;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-method svg {
    width: 24px;
    height: 24px;
    color: var(--primary-gold);
}

.office-hours,
.response-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-item,
.response-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-item:last-child,
.response-item:last-child {
    border-bottom: none;
}

.day,
.response-type {
    color: var(--text-secondary);
    font-weight: 500;
}

.time,
.response-time {
    color: var(--primary-gold);
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Light theme modal overlay */
[data-theme="light"] .modal {
    background: rgba(0, 0, 0, 0.4);
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 500px;
    width: 100%;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(204, 153, 51, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Light theme modal content */
[data-theme="light"] .modal-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(204, 153, 51, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Light theme modal close button hover */
[data-theme="light"] .modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.modal-body {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-black);
}

.modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

@keyframes chipIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 50vh;
        padding: 100px 0 60px;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .contact-form-section {
        padding: 60px 0;
    }

    .contact-form-wrapper {
        padding: 40px 24px;
    }

    .form-title {
        font-size: 32px;
    }

    .phone-country-selector {
        min-width: 80px;
        padding: 0 12px;
    }

    .phone-dial-code {
        font-size: 14px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-card {
        padding: 30px 24px;
    }

    .modal-content {
        padding: 30px 24px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .hero-badges {
        gap: 12px;
    }

    .badge {
        padding: 10px 20px;
        font-size: 13px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .info-card {
        padding: 24px 20px;
    }

    .hours-item,
    .response-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}