/* ===== CRY GALA MODULE - STYLES ===== */

.cry-gala-form {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.cry-gala-form h2 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size:36px;
    color: #ffffff;
    text-align: center;
    padding: 20px 10px 20px 10px;
}

/* ===== SECTION TRANSITIONS ===== */
.cry-section {
    display: none;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s ease-in-out;
    position: relative;
    margin-right:20px;
}

.cry-section-active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.cry-section-slide-out-left {
    animation: slideOutLeft 0.5s forwards;
}

.cry-section-slide-in-right {
    animation: slideInRight 0.5s forwards;
}

.cry-section-slide-out-right {
    animation: slideOutRight 0.5s forwards;
}

.cry-section-slide-in-left {
    animation: slideInLeft 0.5s forwards;
}

@keyframes slideOutLeft {
    to {
        opacity: 0;
        transform: translateX(-100px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== TABLE STYLES ===== */
.cry-gala-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    margin-right: 20px;
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-size:22px;
    color: #ffffff;
}

.cry-gala-table th, .cry-gala-table td {
    border: 1px solid #ddd;
    padding: 20px 20px;
}

.cry-gala-table td.tcenter {
    text-align: center;
}

.cry-gala-table td, .cry-gala-table th {
    font-style: normal;
    font-size:20px;
    color: #ffffff;
}

.cry-gala-table th {
    font-weight: 400;
    background: transparent;
}

.cry-gala-table .tright {
    text-align: right;
}

/* ===== INPUT STYLES ===== */
.inputText {
    width: 60px;
    background: #333;
    color: #fff;
    border: 1px solid #666;
    padding: 8px;
    text-align: center;
    font-size: 1em;
}

.inputText:focus {
    outline: none;
    border-color: #c9a96e;
}

/* ===== FORM GROUPS ===== */
.cry-form-group {
    margin-bottom: 20px;
}

.cry-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #fff;
	font-size: 14px !important;
}

.cry-input {
    width: 100%;
    padding: 10px;
    background: #222;
    color: #fff;
    border: 1px solid #555;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.cry-input:focus {
    outline: none;
    border-color: #c9a96e;
}

textarea.cry-input {
    resize: vertical;
    min-height: 80px;
}

/* ===== BUTTONS ===== */
.cry-btn-group {
    text-align: center;
    margin-top: 30px;
}

.cry-btn {
    padding: 12px 40px;
    border: none;
    font-size: 1em;
    cursor: pointer;
    text-transform: uppercase;
    margin: 0 8px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.cry-btn-primary {
    background: #c9a96e;
    color: #000;
}

.cry-btn-primary:hover {
    background: #b8985d;
}

.cry-btn-secondary {
    background: transparent;
    color: #c9a96e;
    border: 2px solid #c9a96e;
}

.cry-btn-secondary:hover {
    background: #c9a96e;
    color: #000;
}

/* ===== NET TOTAL ===== */
.galaNetTotal {
    text-align: right;
    margin-top: 20px;
    font-size: 24px;
    color: #fff;
}

/* ===== PREVIEW BOX ===== */
.cry-preview-box {
    background: #1a1a1a;
    border: 1px solid #444;
    padding: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.cry-preview-box h3 {
    margin-top: 0;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    color: #c9a96e;
	font-size: 30px;
    font-weight: 400;
}

.cry-preview-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.cry-preview-row:last-child {
    border-bottom: none;
}

.cry-preview-total {
    text-align: right;
    margin-top: 15px;
    font-size: 1.2em;
    border-top: 2px solid #c9a96e;
    padding-top: 10px;
    color: #fff;
}

/* ===== STATUS STYLES ===== */
.cry-status-box {
    text-align: center;
    padding: 40px 20px;
    color: #fff;
}

.cry-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top-color: #c9a96e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.cry-status-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: #28a745;
    color: #fff;
    font-size: 2em;
    margin: 0 auto 20px;
}

.cry-status-error {
    background: #dc3545;
}

/* ===== HEADINGS ===== */
.cry-gala-form h2 {
    text-align: center;
    font-weight: 300;
    margin-bottom: 30px;
    color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cry-gala-table th,
    .cry-gala-table td {
        padding: 10px 5px;
        font-size: 0.9em;
    }

    .inputText {
        width: 50px;
        padding: 6px;
    }

    .cry-btn {
        padding: 10px 25px;
        font-size: 0.9em;
    }
}
/* ===== DONOR FORM GRID LAYOUT ===== */
.cry-donor-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}

.cry-form-col-3 {
    grid-column: span 1;
}

.cry-form-col-2 {
    grid-column: span 1;
}

/* Address fields span 2 columns on larger screens */
@media (min-width: 768px) {
    .cry-form-col-2 {
        grid-column: span 1;
    }
}

/* Full width on mobile */
@media (max-width: 767px) {
    .cry-donor-form-grid {
        grid-template-columns: 1fr;
    }

    .cry-form-col-3,
    .cry-form-col-2 {
        grid-column: span 1;
    }
}

/* Select styling */
select.cry-input {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    background-color: #222;
    color: #fff;
    cursor: pointer;
}

select.cry-input option {
    background-color: #222;
    color: #fff;
}

/* Date input styling */
input[type="date"].cry-input {
    color-scheme: dark;
}

/* Checkbox styling */
.cry-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #fff;
}

.cry-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #c9a96e;
    cursor: pointer;
}

.cry-gift-aid-group {
    margin-top: 20px;
    padding: 15px 15px 15px 0;
    /*background: #1a1a1a;
    border: 1px solid #444;*/	
}

.cry-gift-aid-group a {color: #c9a96e;}

.cry-gift-aid-group .cry-checkbox-label input[type="checkbox"]{vertical-align: middle;}

/* Error state */
.cry-input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.cry-error-message {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 5px;
}
