/* Custom styling for Premium Lavender Theme Contact Form */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-gradient-start: #f8f6fc;
    --bg-gradient-end: #f0ecfa;
    --card-bg: #ffffff;
    --text-main: #2d263b;
    --text-muted: #827597;
    --input-bg: #f9f8fc;
    --input-border: #e1dbec;
    --input-focus-border: #f3781f;
    --input-focus-shadow: rgba(159, 102, 255, 0.15);
    --btn-primary: #f3781f;
    --btn-hover: #de5d00;
    --btn-disabled: #d5cfdf;
    --success-color: #2ec4b6;
    --error-color: #e71d36;
    --otp-btn-bg: #f3781f1a;
    --otp-btn-text: #f3781f;
    --otp-btn-hover: #f3781f42;
}
.form-container #message {
    display: block !important;
}
.form-container {
    background: var(--card-bg);
    width: 100%;
    max-width: 100%;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(105, 41, 196, 0.06), 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(225, 219, 236, 0.5);
    position: relative;
    overflow: hidden;
}

.form-header {
    margin-bottom: 16px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

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

.form-group {
    margin-bottom: 12px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-main);
    background-color: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input::placeholder {
    color: #b0a7bd;
    font-weight: 300;
}

.form-input:hover {
    border-color: #cdc5df;
}

.form-input:focus {
    border-color: var(--input-focus-border);
    background-color: #ffffff;
    /* box-shadow: 0 0 0 4px var(--input-focus-shadow); */
}

.form-container textarea.form-input {
    resize: none;
	height: 120px !important;
    min-height: 120px !important;
    display: block;
}

/* Locked / Readonly State */
.form-input[readonly] {
    background-color: #f1edf7;
    border-color: var(--input-border);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-input:disabled {
    background-color: #f6f5f9;
    border-color: #eae7f0;
    color: #c8c2d1;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Inline action button container for Email OTP */
.email-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.btn-inline-action {
    padding: 0 20px;
    border-radius: 12px;
    border: none;
    background-color: var(--otp-btn-bg);
    color: var(--otp-btn-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-inline-action:hover:not(:disabled) {
    background-color: var(--otp-btn-hover);
}

.btn-inline-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* OTP Code Box section - hidden initially */
.otp-verify-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 0;
}

.otp-verify-section.show {
    max-height: 120px;
    margin-top: 12px;
}

.otp-inner-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px;
    background: #fdfcff;
    border: 1px dashed var(--input-focus-border);
    border-radius: 12px;
}

.otp-timer {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: right;
}

/* Submit Section */
.submit-container {
    margin-top: 32px;
}

.btn-submit {
    width: auto;
    min-width: 160px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background-color: var(--btn-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(138, 63, 252, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-submit:hover:not(:disabled) {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
    /* box-shadow: 0 6px 20px rgba(138, 63, 252, 0.4); */
}

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

.btn-submit:disabled {
    background-color: var(--btn-disabled);
    box-shadow: none;
    cursor: not-allowed;
}

/* Message & Status Alerts */
.status-msg {
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
    line-height: 1.5;
    animation: slideDown 0.3s ease forwards;
}

.status-msg.success {
    display: block;
    background-color: rgba(46, 196, 182, 0.1);
    color: #1e877e;
    border: 1px solid rgba(46, 196, 182, 0.2);
}

.status-msg.error {
    display: block;
    background-color: rgba(231, 29, 54, 0.1);
    color: #b21226;
    border: 1px solid rgba(231, 29, 54, 0.2);
}

/* Honeypot field - must be visually invisible to users but present for screenreaders and bots */
.honey-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
}

/* Success Checkmark & Icons */
.validation-badge {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--success-color);
    pointer-events: none;
    display: none;
    animation: scaleUp 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.validation-badge.show {
    display: block;
}

/* Loaders and Spinners */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
    margin-right: 8px;
}

.btn-inline-action .spinner {
    border-top-color: var(--otp-btn-text);
    border-bottom-color: rgba(105, 41, 196, 0.1);
    border-left-color: rgba(105, 41, 196, 0.1);
    border-right-color: rgba(105, 41, 196, 0.1);
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.6);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Responsive fixes */
@media (max-width: 600px) {
    .form-container {
        padding: 24px;
        border-radius: 16px;
    }

    .email-container {
        grid-template-columns: 1fr;
    }

    .btn-inline-action {
        padding: 12px;
    }
}