/*
Theme Name: IILM Lucknow
Theme URI: https://example.com
Description: Child theme for IILM Lucknow
Author: Neeshu Bharadwaj
Template: iilm-main
Version: 1.0
*/

body { --primary-color: #006400; }

/* ========================= */
/* WRAPPER */
/* ========================= */
.cf7-app-form {
    max-width: 1200px;
    margin: 60px auto;
    padding: 60px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

/* ========================= */
/* TITLE */
/* ========================= */
.cf7-app-form .cf7-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 55px;
    color: #222;
    position: relative;
}

.cf7-app-form .cf7-title:after {
    content: "";
    width: 80px;
    height: 4px;
    background: #b30000;
    display: block;
    margin: 15px auto 0;
    border-radius: 5px;
}

/* ========================= */
/* GRID SYSTEM */
/* ========================= */
.cf7-app-form .cf7-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 50px;
}

.cf7-app-form .cf7-full {
    grid-column: span 2;
}

/* ========================= */
/* FORM GROUP */
/* ========================= */
.cf7-app-form .cf7-group {
    display: flex;
    flex-direction: column;
}

.cf7-app-form .cf7-group label {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: #333;
}

/* ========================= */
/* INPUTS */
/* ========================= */
.cf7-app-form input[type="text"],
.cf7-app-form input[type="email"],
.cf7-app-form input[type="number"],
.cf7-app-form input[type="date"],
.cf7-app-form select,
.cf7-app-form textarea,
.cf7-app-form input[type="file"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    font-size: 14px;
    background: #f9fafc;
    transition: all 0.3s ease;
}

.cf7-app-form textarea {
    min-height: 140px;
    resize: vertical;
}

.cf7-app-form input:focus,
.cf7-app-form select:focus,
.cf7-app-form textarea:focus {
    border-color: #b30000;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(179,0,0,0.07);
}

/* ========================= */
/* RADIO & CHECKBOX */
/* ========================= */
.cf7-app-form .wpcf7-radio,
.cf7-app-form .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
}

.cf7-app-form .wpcf7-list-item {
    margin: 0;
}

.cf7-app-form .wpcf7-list-item input {
    margin-right: 6px;
}

/* ========================= */
/* ERROR STYLING */
/* ========================= */
.cf7-app-form .wpcf7-not-valid {
    border-color: #ff4d4d !important;
}

.cf7-app-form .wpcf7-not-valid-tip {
    font-size: 13px;
    margin-top: 4px;
}

/* ========================= */
/* SUBMIT BUTTON */
/* ========================= */
.cf7-app-form .cf7-submit-wrap {
    text-align: center;
    margin-top: 30px;
}

.cf7-app-form .cf7-btn {
    background: linear-gradient(135deg, #b30000, #7a0000);
    color: #fff;
    padding: 16px 60px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.cf7-app-form .cf7-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(179,0,0,0.25);
}

/* ========================= */
/* SUCCESS MESSAGE */
/* ========================= */
.cf7-app-form .wpcf7-response-output {
    margin-top: 30px;
    padding: 15px;
    border-radius: 8px;
}

/* ========================= */
/* MOBILE RESPONSIVE */
/* ========================= */
@media (max-width: 992px) {

    .cf7-app-form {
        padding: 30px;
    }

    .cf7-app-form .cf7-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cf7-app-form .cf7-full {
        grid-column: span 1;
    }

    .cf7-app-form .cf7-title {
        font-size: 26px;
    }
}
