/* Apply Form Enhanced Styling */

/* Improved input field styling */
.checkoutarea__inputbox input.info,
.checkoutarea__inputbox select.info {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
}

.checkoutarea__inputbox input.info:focus,
.checkoutarea__inputbox select.info:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.checkoutarea__inputbox input.info:hover,
.checkoutarea__inputbox select.info:hover {
    border-color: #b8c1ec;
}

/* Label styling */
.checkoutarea__inputbox label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: #333;
    font-size: 14px;
}

/* Required asterisk styling */
.checkoutarea__inputbox label:not([for="linkedin"])::after {
    content: "";
    color: #e74c3c;
    margin-left: 2px;
}

/* Better textarea styling */
.contact__common__input {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.8;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
    resize: vertical;
    min-height: 150px;
}

.contact__common__input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.contact__common__input:hover {
    border-color: #b8c1ec;
}

/* File upload styling with custom button */
.checkoutarea__inputbox input[type="file"] {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* Hide the default file input */
.checkoutarea__inputbox input[type="file"]::file-selector-button {
    padding: 12px 24px;
    margin-right: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.checkoutarea__inputbox input[type="file"]::file-selector-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Wrapper for file input to add border */
.checkoutarea__inputbox input[type="file"] {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.checkoutarea__inputbox input[type="file"]:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.checkoutarea__inputbox input[type="file"]:focus {
    border-color: #667eea;
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    background: white;
}

/* Small text styling */
small.text-muted {
    font-size: 13px;
    color: #6c757d;
    display: block;
    margin-top: 6px;
    font-style: italic;
}

/* Consent checkbox styling */
.checkoutarea__inputbox label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkoutarea__inputbox label:has(input[type="checkbox"]) {
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    font-weight: 500;
}

.checkoutarea__inputbox label:has(input[type="checkbox"])::after {
    content: none;
    /* Remove asterisk from checkbox label */
}

/* Better form spacing */
.checkoutarea__inputbox {
    margin-bottom: 24px;
}

.checkoutarea__billing__heading {
    margin-bottom: 40px;
}

.checkoutarea__billing__heading h2 {
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 700;
}

.checkoutarea__billing__heading p {
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 15px;
}

.checkoutarea__billing__heading .text-muted {
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

/* Enhanced Submit Button */
.checkoutarea__payment__input__box {
    margin-top: 32px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.checkoutarea__payment__input__box .default__button {
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.checkoutarea__payment__input__box .default__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.checkoutarea__payment__input__box .default__button:active {
    transform: translateY(0);
}

/* Better Error/Success Messages */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

.alert-success::before {
    content: "✓";
    font-size: 20px;
    font-weight: bold;
}

.alert-danger {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

.alert-danger::before {
    content: "⚠";
    font-size: 20px;
}

/* Select dropdown arrow enhancement */
.checkoutarea__inputbox select.info {
    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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Placeholder styling */
.checkoutarea__inputbox input.info::placeholder,
.checkoutarea__inputbox select.info::placeholder,
.contact__common__input::placeholder {
    color: #999;
    font-style: italic;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .checkoutarea__billing__heading h2 {
        font-size: 24px;
    }

    .checkoutarea__billing__heading p {
        font-size: 14px;
    }

    .checkoutarea__inputbox input.info,
    .checkoutarea__inputbox select.info,
    .contact__common__input {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .checkoutarea__payment__input__box .default__button {
        width: 100%;
        padding: 14px 24px;
    }

    .checkoutarea__inputbox {
        margin-bottom: 20px;
    }
}

/* Loading state for submit button */
.checkoutarea__payment__input__box .default__button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.checkoutarea__payment__input__box .default__button.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Form validation error states */
.checkoutarea__inputbox input.info.error,
.checkoutarea__inputbox select.info.error {
    border-color: #e74c3c;
}

.checkoutarea__inputbox .error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

/* Accessibility improvements */
.checkoutarea__inputbox input.info:focus-visible,
.checkoutarea__inputbox select.info:focus-visible,
.contact__common__input:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Better row spacing */
.checkoutarea__billing__form .row {
    margin-bottom: 0;
}

/* Form container styling */
.checkoutarea__billing {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .checkoutarea__billing {
        padding: 24px;
    }
}
/* Honeypot Field - Hidden from users */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
