/* Form Styling */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.625rem;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9375rem;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 400;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 0.875rem;
    background-color: #d82923;
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #c41e18;
}

.submit-btn:active {
    background-color: #b31a15;
}

.submit-btn:disabled {
    background-color: #e57373;
    cursor: not-allowed;
}

/* Error Message */
.error-message {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    display: none;
}

.error-message[role="alert"] {
    display: block;
}

input[aria-invalid="true"] {
    border-color: #dc2626 !important;
}

/* Loading Popup */
.loading-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.loading-popup.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-text {
    color: #4a5568;
    font-size: 1.1rem;
    margin-top: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@import "https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Merriweather', serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
}

body {
    background-color: #fff;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    font-weight: 400;
}

/* Notice Bar */
.notice-bar {
    background-color: #d82923;
    color: white;
    text-align: center;
    padding: 0.9375rem;
    font-weight: 700;
    font-size: 0.875rem;
    position: relative;
    z-index: 5;
}

@media (max-width: 480px) {
    .notice-bar {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
}

/* Header */
.header {
    background-color: #000;
    padding: 0.9375rem 1.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 4;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 1rem;
    }
    
    .logo img {
        height: 32px;
    }
}

/* Language Selector */
#languageSelect {
    position: relative;
    z-index: 10;
}

.languageSelect-container {
    position: relative;
}

.languageSelect-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: white;
    padding: 0.3125rem;
    transition: opacity 0.2s ease;
}

.languageSelect-toggle:hover {
    opacity: 0.9;
}

.languageSelect-toggle:active {
    opacity: 0.7;
}

.flag-icon {
    width: 1.25rem;
    height: 0.9375rem;
    margin-right: 0.3125rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flag-icon-gb {
    background-image: url('../assets/images/gb-flag.svg');
}

.flag-icon-fr {
    background-image: url('../assets/images/fr-flag.svg');
}

.lang {
    margin: 0 0.3125rem;
    font-size: 0.875rem;
    font-weight: 400;
}

.arrow {
    width: 0;
    height: 0;
    border-left: 0.3125rem solid transparent;
    border-right: 0.3125rem solid transparent;
    border-top: 0.3125rem solid white;
    margin-left: 0.3125rem;
}

.languageSelect-list {
    position: absolute;
    right: 0;
    top: 2rem;
    background-color: white;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.2);
    width: 9.375rem;
    display: none;
    z-index: 20;
    overflow: hidden;
}

.languageSelect-list.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-0.3125rem); }
    to { opacity: 1; transform: translateY(0); }
}

.languageSelect-list-item {
    padding: 0.3125rem 0;
}

.languageSelect-list-item-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.9375rem;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
    font-weight: 400;
}

.languageSelect-list-item-link:hover {
    background-color: #f9f9f9;
}

.languageSelect-list-item-link:active {
    background-color: #f0f0f0;
}

.languageSelect-list-item-link.selectedLanguage {
    background-color: #f5f5f5;
}

.languageSelect-list-item-link-flag {
    margin-right: 0.625rem;
}

/* Main Content */
.main-content {
    display: flex;
    justify-content: center;
    padding: 3.125rem 1.25rem;
    min-height: calc(100vh - 6.875rem);
    max-width: 75rem;
    margin: 0 auto;
}

.left-section {
    padding-right: 3.125rem;
    max-width: 28.125rem;
    flex: 1;
}

.right-section {
    padding-left: 3.125rem;
    border-left: 1px solid #eee;
    max-width: 28.125rem;
    flex: 1;
}

h1 {
    color: #4a5568;
    font-size: 1.75rem;
    margin-bottom: 1.875rem;
    font-weight: 700;
    line-height: 1.4;
    font-family: 'Merriweather', serif;
}

ul {
    list-style-type: none;
    margin-bottom: 1.875rem;
}

li {
    margin-bottom: 0.9375rem;
    padding-left: 1.5625rem;
    position: relative;
    color: #4a5568;
    line-height: 1.5;
    font-size: 1rem;
    font-weight: 400;
}

li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4a5568;
}

@media (max-width: 992px) {
    .main-content {
        padding: 2.5rem 1.25rem;
    }
    
    .left-section, .right-section {
        padding-right: 1.875rem;
        padding-left: 1.875rem;
        max-width: 25rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        align-items: center;
        padding: 1.875rem 1.25rem;
    }
    
    .left-section, .right-section {
        padding: 1.25rem;
        max-width: 100%;
        width: 100%;
    }
    
    .right-section {
        border-left: none;
        border-top: 1px solid #eee;
        margin-top: 1.25rem;
        padding-top: 2.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5625rem;
        text-align: center;
    }
    
    li {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1.25rem 0.9375rem;
    }
    
    .left-section, .right-section {
        padding: 0.9375rem;
    }
    
    h1 {
        font-size: 1.3125rem;
    }
}

/* Intl Tel Input Styling */
.iti {
    width: 100%;
    margin-bottom: 0.5rem;
}

.iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/img/flags@2x.png");
    }
}

/* Make the country dropdown match our form style */
.iti--container {
    z-index: 20;
}

.iti__country-list {
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
    font-weight: 400;
    max-height: 12.5rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cecece #f5f5f5;
}

.iti__country-list::-webkit-scrollbar {
    width: 0.5rem;
}

.iti__country-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 0.25rem;
}

.iti__country-list::-webkit-scrollbar-thumb {
    background-color: #cecece;
    border-radius: 0.25rem;
}

.iti__country {
    padding: 0.625rem 0.75rem;
    transition: background-color 0.2s ease;
}

.iti__country:hover {
    background-color: #f5f5f5;
}

.iti__selected-flag {
    padding: 0 0.625rem 0 0.75rem;
    background-color: #f9f9f9;
    border-radius: 0.25rem 0 0 0.25rem;
    transition: background-color 0.2s ease;
}

.iti__selected-flag:hover {
    background-color: #f0f0f0;
}

.iti--allow-dropdown input {
    padding-left: 3.75rem;
}

/* Highlight selected country */
.iti__country.iti__active {
    background-color: #edf2fd;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .iti__country-name {
        font-size: 0.75rem;
    }
    
    .iti__dial-code {
        font-size: 0.75rem;
    }
}

.btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.9375rem;
    width: 100%;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.625rem;
    transition: background-color 0.3s ease, transform 0.1s ease;
    -webkit-appearance: none;
    appearance: none;
}

.btn:hover {
    background-color: #1d4ed8;
}

.btn:active {
    transform: translateY(1px);
    background-color: #1e40af;
}

@media (max-width: 480px) {
    label {
        font-size: 0.875rem;
    }
    
    input[type="text"],
    input[type="email"],
    .btn {
        font-size: 0.9375rem;
        padding: 0.6875rem;
    }
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    margin-top: 3.125rem;
    flex-wrap: wrap;
}

.badge {
    margin: 0.625rem;
    max-width: 7.5rem;
    height: auto;
}

.badge img {
    object-fit: contain;
    width: 100%;
    height: 60px;
    display: block;
}

@media (max-width: 768px) {
    .security-badges {
        margin-top: 2.5rem;
    }
}

@media (max-width: 480px) {
    .security-badges {
        margin-top: 1.875rem;
    }
    
    .badge {
        margin: 0.5rem;
        max-width: 6.25rem;
    }
}

/* Accessibility */
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Loading States */
.is-loading {
    position: relative;
    pointer-events: none;
}

.is-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 0.25rem;
    z-index: 2;
}

.is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: -0.75rem;
    margin-left: -0.75rem;
    border-radius: 50%;
    border: 2px solid #f3f3f3;
    border-top-color: #2563eb;
    animation: spin 1s linear infinite;
    z-index: 3;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}