/* Frontend Contact Form Styling - Govt Result Contact Form */

.grcf-form-container {
    max-width: 650px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    border: 1px solid #eaeaea;
}

.grcf-form-container * {
    box-sizing: border-box;
}

.grcf-form-header {
    margin-bottom: 25px;
}

.grcf-form-header h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: #1a237e; /* Premium Dark Navy */
    font-weight: 700;
}

.grcf-notice {
    color: #d32f2f; /* Deep Red for Notice */
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 12px 16px;
    background-color: #ffebee; /* Soft red bg */
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
    font-weight: 500;
}

.grcf-form-group {
    margin-bottom: 20px;
}

.grcf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
    font-size: 15px;
}

.grcf-form-group label .required {
    color: #d32f2f;
    margin-left: 2px;
}

.grcf-form-group input[type="text"],
.grcf-form-group input[type="tel"],
.grcf-form-group input[type="email"],
.grcf-form-group input[type="number"],
.grcf-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1.5px solid #cccccc;
    border-radius: 6px;
    background-color: #fafafa;
    color: #333333;
    transition: all 0.3s ease;
    outline: none;
}

.grcf-form-group input:focus,
.grcf-form-group textarea:focus {
    border-color: #1a237e;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.15);
}

.grcf-form-group input::placeholder,
.grcf-form-group textarea::placeholder {
    color: #999999;
}

.grcf-help-text {
    display: block;
    font-size: 12px;
    color: #666666;
    margin-top: 5px;
}

.grcf-captcha-group {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    border: 1px dashed #cccccc;
}

.grcf-captcha-question {
    background: #e8eaf6;
    color: #1a237e;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    font-size: 16px;
    margin-left: 5px;
}

.grcf-submit-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.grcf-btn {
    background-color: #1a237e;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.grcf-btn:hover {
    background-color: #0d1b60;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.2);
}

.grcf-btn:active {
    transform: translateY(1px);
}

.grcf-btn:disabled {
    background-color: #9fa8da;
    cursor: not-allowed;
}

/* Spinner */
.grcf-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(26, 35, 126, 0.1);
    border-top: 3px solid #1a237e;
    border-radius: 50%;
    animation: grcf-spin 0.8s linear infinite;
}

@keyframes grcf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Alert Messages */
.grcf-response-alert {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    animation: grcf-fade-in 0.3s ease;
}

.grcf-response-alert.grcf-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.grcf-response-alert.grcf-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

@keyframes grcf-fade-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustment */
@media (max-width: 480px) {
    .grcf-form-container {
        padding: 20px 15px;
        margin: 20px auto;
    }
    .grcf-submit-row {
        flex-direction: column;
        align-items: stretch;
    }
    .grcf-btn {
        width: 100%;
    }
    .grcf-spinner {
        margin: 0 auto;
    }
}
