/**
 * 7th Traditioner Frontend Styles
 */

/* Container */
.seventh-trad-container {
    max-width: 600px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Currency Selector (shown first) */
.seventh-trad-currency-selector {
    text-align: center;
    padding: 40px 20px;
}

.seventh-trad-currency-selector h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 600;
}

.seventh-trad-currency-selector p {
    margin: 0 0 30px;
    color: #666;
}

/* Currency Locked Display (at top of form) */
.seventh-trad-currency-locked {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f0f0f0;
    border-radius: 6px;
    margin-bottom: 25px;
}

.seventh-trad-currency-info {
    font-size: 16px;
}

.seventh-trad-currency-info strong {
    margin-right: 8px;
}

.seventh-trad-button-link {
    background: transparent !important;
    border: 1px solid #1E2F73 !important;
    color: #1E2F73 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    font-size: 14px;
    font-weight: 700 !important;
    padding: 4px 12px;
    border-radius: 4px;
}

.seventh-trad-button-link:hover {
    background: transparent !important;
    border-color: #0066cc !important;
    color: #0066cc !important;
    text-decoration: none !important;
}

.seventh-trad-button-link:active,
.seventh-trad-button-link:focus {
    background: transparent !important;
    border-color: #1E2F73 !important;
    color: #1E2F73 !important;
    outline: none !important;
    box-shadow: none !important;
}

.seventh-trad-help-centered {
    text-align: center;
    display: block;
}

/* One-time vs monthly selector (shown after reCAPTCHA when recurring is enabled) */
.seventh-trad-contribution-type-selector {
    text-align: center;
    padding: 40px 20px;
}

.seventh-trad-contribution-type-selector h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 600;
}

.seventh-trad-contribution-type-selector .seventh-trad-help {
    margin: 0 0 30px;
    color: #666;
}

.seventh-trad-contribution-type-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 420px;
    margin: 0 auto;
}

.seventh-trad-contribution-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 20px 24px;
    border: 2px solid #1E2F73;
    border-radius: 8px;
    background: #ffffff;
    color: #1E2F73;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
    text-align: center;
}

.seventh-trad-contribution-type-btn:hover,
.seventh-trad-contribution-type-btn:focus {
    background: #1E2F73;
    color: #ffffff;
    outline: none;
}

.seventh-trad-contribution-type-title {
    font-size: 18px;
    font-weight: 700;
}

.seventh-trad-contribution-type-desc {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

.seventh-trad-form-wrapper {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Title */
.seventh-trad-title {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    text-align: center;
}

/* Description */
.seventh-trad-description {
    margin: 0 0 30px;
    font-size: 18px;
    line-height: 1.7;
    color: #1a1a1a;
    text-align: center;
}

/* Messages */
.seventh-trad-messages {
    margin-bottom: 20px;
}

.seventh-trad-success,
.seventh-trad-error {
    padding: 18px 22px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.6;
    display: none;
    font-weight: 500;
}

.seventh-trad-success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.seventh-trad-error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

/* Form Fields */
.seventh-trad-field {
    margin-bottom: 28px;
}

.seventh-trad-field-row {
    display: flex;
    gap: 20px;
}

.seventh-trad-field-half {
    flex: 1;
}

.seventh-trad-field-60 {
    flex: 0 0 58%;
}

.seventh-trad-field-40 {
    flex: 0 0 38%;
}

/* Amount field with currency prefix */
.seventh-trad-amount-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.seventh-trad-currency-prefix {
    position: absolute;
    left: 16px;
    font-weight: 700;
    color: #1E2F73;
    font-size: 19px;
    pointer-events: none;
    z-index: 1;
}

.seventh-trad-amount-input {
    padding-left: 65px !important;
    padding-top: 15px !important;
}

.seventh-trad-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 17px;
    color: #000000;
}

.seventh-trad-field .required {
    color: #cc0000;
    font-weight: 700;
}

.seventh-trad-field .optional {
    font-weight: 400;
    color: #ffffff !important;
}

.seventh-trad-input,
.seventh-trad-select,
.seventh-trad-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 18px;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
    border: 2px solid #666666;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
    height: auto;
    min-height: 54px;
}

.seventh-trad-input:focus,
.seventh-trad-select:focus,
.seventh-trad-textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
}

.seventh-trad-textarea {
    resize: vertical;
    min-height: 100px;
}

.seventh-trad-help,
small.seventh-trad-help {
    display: block !important;
    margin-top: 8px !important;
    font-size: 17px !important;
    color: #ffffff !important;
    line-height: 1.5 !important;
}

/* Override any theme/Elementor styles on small tags */
.seventh-trad-form small,
.seventh-trad-form small.seventh-trad-help,
.seventh-trad-field small {
    color: #ffffff !important;
    font-size: 17px !important;
}

.seventh-trad-help a,
.seventh-trad-help a:link,
.seventh-trad-help a:visited,
#seventh-trad-add-other-meeting,
#seventh-trad-select-from-list {
    color: #1E2F73 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    font-weight: 700 !important;
}

.seventh-trad-help a:hover,
.seventh-trad-help a:focus,
#seventh-trad-add-other-meeting:hover,
#seventh-trad-select-from-list:hover {
    color: #0066cc !important;
    text-decoration: none !important;
}

/* Payment Methods */
.seventh-trad-payment-methods {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.seventh-trad-payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border: 2px solid #666666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.seventh-trad-payment-method:hover {
    border-color: #0066cc;
    background-color: #f0f7ff;
}

.seventh-trad-payment-method:hover span {
    color: #000000 !important;
}

.seventh-trad-payment-method-disabled {
    cursor: not-allowed !important;
    background-color: #f5f5f5 !important;
    opacity: 0.7;
}

.seventh-trad-payment-method-disabled span {
    color: #333333 !important;
}

.seventh-trad-payment-method-disabled:hover {
    border-color: #666666 !important;
    background-color: #f5f5f5 !important;
}

.seventh-trad-payment-method-disabled input[type="radio"] {
    cursor: not-allowed !important;
    opacity: 0.5;
}

.seventh-trad-recurring-notice {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    margin-top: 10px !important;
}

.seventh-trad-payment-method input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.seventh-trad-payment-method input[type="radio"]:checked + span {
    font-weight: 700;
    color: #0066cc;
}

.seventh-trad-payment-method span {
    font-size: 17px;
    font-weight: 500;
    color: #d4af37 !important;
}

/* Submit Button - Override Elementor and other theme styles */
.seventh-trad-submit-container {
    margin: 30px 0 !important;
    background-color: transparent;
    padding: 20px;
    border-radius: 8px;
}

/* Help text inside PayPal button container - needs to be dark on white background */
.seventh-trad-submit-container .seventh-trad-help {
    color: #000000 !important;
}

.seventh-trad-submit-btn {
    width: 100% !important;
    padding: 18px 24px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background-color: #0070ba !important;
    background-image: none !important;
    border: 2px solid #0070ba !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    min-height: 60px !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.5 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    display: block !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
}

.seventh-trad-submit-btn:hover {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #000000 !important;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.5) !important;
}

.seventh-trad-submit-btn:active {
    background-color: #004578 !important;
    border-color: #004578 !important;
    color: #ffffff !important;
}

.seventh-trad-submit-btn:focus {
    outline: 3px solid #63b3ed !important;
    outline-offset: 2px !important;
}

.seventh-trad-submit-btn:disabled {
    background-color: #cccccc !important;
    border-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* PayPal Button Container */
.seventh-trad-paypal-container {
    margin: 30px 0;
    min-height: 50px;
}

.seventh-trad-paypal-placeholder {
    margin: 0;
    padding: 20px;
    text-align: center;
    color: #666666;
    font-size: 16px;
    line-height: 1.5;
}

/* Loading */
.seventh-trad-loading {
    text-align: center;
    padding: 30px 0;
}

.seventh-trad-spinner {
    border: 5px solid #cccccc;
    border-top: 5px solid #0066cc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: seventh-trad-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes seventh-trad-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.seventh-trad-loading p {
    margin: 0;
    color: #000000;
    font-size: 18px;
    font-weight: 500;
}

/* Footer */
.seventh-trad-footer {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #cccccc;
    text-align: center;
}

.seventh-trad-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
}

.seventh-trad-secure svg {
    color: #228800;
}

.seventh-trad-privacy {
    margin: 0;
    font-size: 15px;
    color: #333333;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 640px) {
    .seventh-trad-container {
        margin: 20px 16px;
    }

    .seventh-trad-form-wrapper {
        padding: 24px;
    }

    .seventh-trad-title {
        font-size: 24px;
    }

    .seventh-trad-field-row {
        flex-direction: column;
        gap: 0;
    }

    .seventh-trad-field-half {
        margin-bottom: 24px;
    }

    .seventh-trad-field-half:last-child {
        margin-bottom: 0;
    }
}

/* Light mode only - dark mode removed for simplicity */
