/**
 * Gifts - Frontend Styles
 */

/* ====================================
   General Styles
   ==================================== */
.gifts-error,
.gifts-notice {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 16px;
}

.gifts-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.gifts-notice {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ====================================
   Donation Buttons
   ==================================== */
.gifts-buttons-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.gifts-button-form {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.gifts-button {
    flex: 1;
    min-width: 200px;
    max-width: 100%;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.gifts-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.gifts-button:active {
    transform: translateY(0);
}

.gifts-button-label {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
}

.gifts-button-amount {
    font-size: 28px;
    font-weight: 700;
}

/* Alternative color schemes */
.gifts-button-2500 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gifts-button-5000 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gifts-button-10000 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ====================================
   Single Button
   ==================================== */
.gifts-single-button-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.gifts-single-button-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin-top: auto;
}

.gifts-button-single {
    width: 100%;
    max-width: 100%;
    padding: 25px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    align-items: center;
    margin-top: auto;
}

.gifts-button-single:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.gifts-button-single:active {
    transform: translateY(0);
}

/* Single button inherits color schemes from multi-button classes */
.gifts-button-single.gifts-button-2500 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gifts-button-single.gifts-button-5000 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gifts-button-single.gifts-button-10000 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Custom Amount Input */
.gifts-custom-amount-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.gifts-custom-amount-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.gifts-custom-amount-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7f7f7;
    border-radius: 6px;
    padding: 5px 15px;
}

.gifts-custom-amount-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    padding: 10px 0;
    text-align: right;
    outline: none;
}

.gifts-custom-amount-input::-webkit-inner-spin-button,
.gifts-custom-amount-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gifts-custom-amount-input[type=number] {
    -moz-appearance: textfield;
}

.gifts-custom-amount-currency {
    font-size: 24px;
    font-weight: 600;
    color: #666;
}

.gifts-button-custom {
    margin-top: 10px;
}

/* ====================================
   Donation Form
   ==================================== */
.gifts-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gifts-selected-amount {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.gifts-selected-amount p {
    margin: 0;
    font-size: 20px;
}

.gifts-selected-amount strong {
    font-size: 32px;
    font-weight: 700;
}

/* Amount Edit in Form */
.gifts-amount-edit-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gifts-amount-label {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.gifts-amount-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gifts-amount-input,
input#donation_amount_edit {
    flex: 1;
    font-family: 'NeulisSans-Regular', Helvetica, Arial, Lucida, sans-serif;
    padding: 10px;
    font-size: 25px;
    text-align: center;
    color: white;
    background: #ffffff22;
    border: none;
    border-radius: 10px;
    outline: none;
}

.gifts-amount-input::-webkit-inner-spin-button,
.gifts-amount-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gifts-amount-input[type=number] {
    -moz-appearance: textfield;
}

.gifts-amount-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.gifts-amount-currency {
    font-size: 28px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.gifts-amount-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-style: italic;
}

/* Form Structure */
.gifts-donation-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.gifts-fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 25px;
    margin: 0;
}

.gifts-fieldset legend {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding: 0 10px;
}

/* Form Rows */
.gifts-form-row {
    margin-bottom: 15px;
}

.gifts-form-row:last-child {
    margin-bottom: 0;
}

.gifts-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .gifts-form-row-half {
        grid-template-columns: 1fr;
    }
}

.gifts-form-col {
    display: flex;
    flex-direction: column;
}

/* Labels and Inputs */
.gifts-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.required {
    color: #e74c3c;
    font-weight: 700;
}

.gifts-input,
.gifts-input select,
select.gifts-input,
input.gifts-input[type="text"],
input.gifts-input[type="email"],
input.gifts-input[type="tel"] {
    width: 100%;
    margin: 0;
    padding: 10px;
    background: #f7f7f7;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #4e4e4e;
}

.gifts-input:focus,
select.gifts-input:focus,
input.gifts-input[type="text"]:focus,
input.gifts-input[type="email"]:focus,
input.gifts-input[type="tel"]:focus {
    outline: none;
    background: #efefef;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.gifts-field-description {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Checkbox Styles */
.gifts-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
}

.gifts-checkbox {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

/* Radio Button Styles */
.gifts-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gifts-radio-label:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.gifts-radio-label:has(.gifts-radio:checked) {
    border-color: #667eea;
    background-color: #f0f3ff;
}

.gifts-radio {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.gifts-radio-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.gifts-radio-text strong {
    font-size: 16px;
    color: #333;
}

.gifts-radio-description {
    font-size: 14px;
    color: #666;
}

/* Submit Button */
.gifts-form-actions {
    margin-top: 10px;
}

.gifts-submit-button {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.gifts-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.gifts-submit-button:active {
    transform: translateY(0);
}

.gifts-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ====================================
   Admin List View Badges & Status
   ==================================== */
.gifts-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.gifts-invoice {
    background-color: #fff3cd;
    color: #856404;
}

.gifts-stripe {
    background-color: #d1ecf1;
    color: #0c5460;
}

.gifts-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.gifts-waiting {
    background-color: #fff3cd;
    color: #856404;
}

.gifts-completed {
    background-color: #d4edda;
    color: #155724;
}

.gifts-invoiced {
    background-color: #d1ecf1;
    color: #0c5460;
}

.gifts-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 768px) {
    .gifts-buttons-container {
        padding: 15px;
    }

    .gifts-button-form {
        flex-direction: column;
    }

    .gifts-button {
        max-width: 100%;
    }

    .gifts-form-container {
        padding: 20px 15px;
    }

    .gifts-fieldset {
        padding: 15px;
    }
}
