/* CIHTM Application Form Styles */

.cihtm-form-wrapper {
    max-width: 960px;
    margin: 0 auto;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
}

#cihtm-notice {
    margin-bottom: 20px;
}

#cihtm-notice.cihtm-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 5px solid #28a745;
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 15px;
}

#cihtm-notice.cihtm-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 5px solid #dc3545;
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 15px;
}

/* Section Headings */
.cihtm-section-heading {
    background: #003366;
    color: #fff;
    padding: 12px 20px;
    margin: 30px 0 18px;
    border-radius: 4px;
}

.cihtm-section-heading h2,
.cihtm-section-heading h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    border: none;
    padding: 0;
}

.cihtm-section-heading h3 {
    font-size: 15px;
    font-weight: 600;
}

.cihtm-section-heading p,
.cihtm-section-heading small {
    margin: 4px 0 0;
    font-size: 13px;
    color: #cce;
}

/* Grid Rows */
.cihtm-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 4px;
}

.cihtm-col-full  { flex: 0 0 100%; max-width: 100%; }
.cihtm-col-half  { flex: 1 1 calc(50% - 8px); min-width: 200px; }
.cihtm-col-third { flex: 1 1 calc(33.333% - 11px); min-width: 150px; }
.cihtm-col-quarter { flex: 1 1 calc(25% - 12px); min-width: 130px; }
.cihtm-col-60    { flex: 1 1 calc(60% - 8px); min-width: 200px; }
.cihtm-col-40    { flex: 1 1 calc(40% - 8px); min-width: 160px; }
.cihtm-col-25    { flex: 1 1 calc(25% - 12px); min-width: 120px; }
.cihtm-col-10    { flex: 1 1 calc(10% - 12px); min-width: 90px; }

/* Fields */
.cihtm-field {
    margin-bottom: 14px;
}

.cihtm-field label {
    display: block;
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 5px;
    color: #222;
}

.cihtm-field input[type="text"],
.cihtm-field input[type="email"],
.cihtm-field input[type="tel"],
.cihtm-field input[type="date"],
.cihtm-field input[type="number"],
.cihtm-field textarea,
.cihtm-field select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}

.cihtm-field input[type="text"]:focus,
.cihtm-field input[type="email"]:focus,
.cihtm-field input[type="tel"]:focus,
.cihtm-field input[type="date"]:focus,
.cihtm-field input[type="number"]:focus,
.cihtm-field textarea:focus,
.cihtm-field select:focus {
    border-color: #003366;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.cihtm-field input[type="file"] {
    padding: 6px;
    font-size: 13px;
    border: 1px dashed #aaa;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    background: #f9f9f9;
    cursor: pointer;
}

.cihtm-field textarea {
    resize: vertical;
    min-height: 80px;
}

.req {
    color: #ee0000;
    margin-left: 2px;
}

.cihtm-hint {
    display: block;
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    font-style: italic;
}

/* Checkbox / Radio Groups */
.cihtm-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 6px;
}

.cihtm-checkbox-group.cihtm-stacked {
    flex-direction: column;
    gap: 8px;
}

.cihtm-inline,
.cihtm-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.cihtm-inline input,
.cihtm-checkbox-group input {
    width: auto !important;
    cursor: pointer;
    accent-color: #003366;
}

/* Info Box */
.cihtm-info-box {
    background: #f0f4f8;
    border-left: 4px solid #003366;
    padding: 12px 16px;
    margin: 12px 0 20px;
    border-radius: 0 4px 4px 0;
    font-size: 13.5px;
    color: #444;
}

.cihtm-info-box p {
    margin: 0;
}

/* Submit Button */
.cihtm-submit-btn {
    display: inline-block;
    background: #003366;
    color: #fff;
    padding: 13px 40px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.cihtm-submit-btn:hover {
    background: #004d99;
}

.cihtm-submit-btn:active {
    transform: scale(0.98);
}

.cihtm-submit-btn:disabled {
    background: #7a9cbf;
    cursor: not-allowed;
}

/* Fee Notice */
.cihtm-fee-notice {
    background: #7b0000;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 24px;
}

/* Red theme for nomination form */
.cihtm-section-heading.cihtm-red {
    background: #7b0000;
}

.cihtm-section-heading.cihtm-red h2,
.cihtm-section-heading.cihtm-red h3 {
    color: #fff;
}

.cihtm-section-heading.cihtm-red p {
    color: #f9c0c0;
}

/* Red info box variant */
.cihtm-info-box.cihtm-red-box {
    border-left-color: #7b0000;
    background: #fff5f5;
}

/* Red submit button */
.cihtm-submit-btn.cihtm-submit-red {
    background: #7b0000;
}

.cihtm-submit-btn.cihtm-submit-red:hover {
    background: #a00000;
}

.cihtm-submit-btn.cihtm-submit-red:disabled {
    background: #c08080;
}

/* Responsive */
@media (max-width: 600px) {
    .cihtm-col-half,
    .cihtm-col-third,
    .cihtm-col-quarter,
    .cihtm-col-60,
    .cihtm-col-40,
    .cihtm-col-25,
    .cihtm-col-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}