/* Wrapper container */
.akt-custom-fields-wrapper {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin: 20px 0;
}

/* General Row Layout */
.akt-form-row {
    margin-bottom: 15px;
}
.akt-form-row:last-child {
    margin-bottom: 0;
}

/* Labels */
.akt-form-row label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #333;
}

/* Inline labels (e.g. "või loon uue") */
.akt-form-row label.inline-label {
    display: inline-block;
    width: auto;
    margin: 0 10px;
    font-weight: 400;
}

/* --- ÜHTNE STIIL: Sisestusväljad ja Valikud --- */
/* Kasutame !important, et kirjutada üle teema stiilid */
.akt-custom-fields-wrapper input[type="text"],
.akt-custom-fields-wrapper select {
    padding: 0 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    color: #333;
    font-size: 14px !important;
    line-height: normal !important;
    box-sizing: border-box !important;
    width: 100%;
    max-width: 100%;
    height: 42px !important; /* Forsseeritud ühtne kõrgus */
    min-height: 42px !important;
    vertical-align: middle;
    display: inline-block;
    margin: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus olek (kui kast on aktiivne) */
.akt-custom-fields-wrapper input[type="text"]:focus,
.akt-custom-fields-wrapper select:focus {
    border-color: #666 !important;
    outline: none;
    box-shadow: 0 0 0 1px rgba(100, 100, 100, 0.2);
}

/* Placeholder teksti värv */
.akt-custom-fields-wrapper input::placeholder {
    color: #999;
    opacity: 1;
}

/* --- Spetsiifilised paigutused --- */

/* Team Selection Container */
.akt-team-selection-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
/* Siin kirjutame üle width: 100%, et nad mahuks kõrvuti */
.akt-team-selection-container select.akt-select-team {
    width: auto;
    min-width: 200px;
    max-width: 250px;
    display: inline-block;
    text-overflow: ellipsis;
}
.akt-team-selection-container input.akt-input-team {
    width: auto;
    min-width: 200px;
    max-width: 250px;
    display: inline-block;
}

/* Team Members inputs margin */
.akt-form-row.members-row .member-input {
    margin-bottom: 10px;
}

/* Sub-sections (Donation, Fee) */
.akt-sub-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

/* Discount Section */
.discount-section .radio-option {
    margin-bottom: 8px;
}
.discount-section .radio-option label {
    font-weight: 400;
    display: inline;
}
.discount-section .akt_disabled {
    opacity: 0.6;
}

/* Total Price Display */
.akt-total-row {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid #eee;
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

/* Info Text */
.akt-info-text {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin: 10px 0;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .akt-team-selection-container {
        flex-direction: column;
        align-items: flex-start;
    }
    /* Mobiilis on väljad täislaiuses */
    .akt-team-selection-container select.akt-select-team,
    .akt-team-selection-container input.akt-input-team {
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
    .akt-form-row label.inline-label {
        display: block;
        margin: 5px 0;
        text-align: left;
    }
    #akt_donation_container {
        margin-left: 0 !important;
        padding-left: 10px;
        border-left: 2px solid #eee;
    }
}