/* ==========================================================================
   Camp Booking — frontend styles
   ========================================================================== */

/* Modal overlay */
.camp-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    overflow-y: auto;
}

/* Modal inner box */
.camp-modal-inner {
    position: relative;
    width: 90%;
    max-width: 560px;
    margin: 40px auto;
    background: #fff;
    padding: 32px;
    box-sizing: border-box;
}

/* Close button */
.camp-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
}

.camp-modal-close:hover {
    color: #000;
}

/* Week info */
.camp-modal-title {
    margin: 0 0 4px;
    font-size: 20px;
}

.camp-modal-info {
    margin: 0 0 24px;
    color: #555;
}

/* Form fields — bottom border only, no border-radius */
.camp-field {
    margin-bottom: 20px;
}

.camp-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.camp-field label .camp-required {
    color: red;
}

.camp-field input[type="text"],
.camp-field input[type="tel"],
.camp-field input[type="email"],
.camp-field textarea {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-bottom: 2px solid #000;
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.camp-field input[type="text"]:focus,
.camp-field input[type="tel"]:focus,
.camp-field input[type="email"]:focus,
.camp-field textarea:focus {
    border-bottom-color: #3a9b87;
}

.camp-field input.error,
.camp-field textarea.error {
    border-bottom-color: red;
}

.camp-field textarea {
    resize: vertical;
    min-height: 72px;
}

/* Square card container */
.camp-card-container {
    border: none;
    border-bottom: 2px solid #000;
    padding: 8px 0;
    min-height: 44px;
}

.camp-card-errors {
    color: red;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

/* Pay button */
.camp-pay-btn {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.camp-pay-btn:hover:not(:disabled) {
    background: #222;
}

.camp-pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Step: processing */
.camp-step-processing {
    text-align: center;
    padding: 40px 0;
}

.camp-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #eee;
    border-top-color: #000;
    border-radius: 50%;
    animation: camp-spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

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

.camp-step-processing p {
    color: #555;
    margin: 0 0 8px;
}

.camp-step-processing .camp-processing-note {
    font-size: 13px;
    color: #999;
}

/* Step: result */
.camp-step-result {
    text-align: center;
    padding: 20px 0;
}

.camp-result-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.camp-result-title {
    margin: 0 0 12px;
}

.camp-result-title--success { color: #3a9b87; }
.camp-result-title--error   { color: #000; }
.camp-result-title--timeout { color: #000; }

.camp-result-text {
    color: #555;
}

/* Result action buttons — no border-radius */
.camp-result-btn {
    margin-top: 20px;
    padding: 12px 28px;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.camp-result-btn:hover {
    opacity: 0.85;
}

.camp-result-btn--success { background: #000; }
.camp-result-btn--error   { background: #000; }
.camp-result-btn--timeout { background: #000; }

/* jQuery Validate error messages */
.camp-field-error {
    display: block;
    color: red;
    font-size: 12px;
    margin-top: 4px;
}
