/* ============================================================
   GLOBAL RESETS & BUTTONS
============================================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    color: #000;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

.yel-bl {
    background-color: #f2e818;
    font-weight: 500;
    color: #000;
    border: none;
    border-radius: 7px;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.yel-bl:hover,
.yel-bl:active,
.yel-bl:focus {
    background-color: #e2d808;
    outline: 2px solid #000;
    outline-offset: 2px;
}

.yel-bl:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ============================================================
   EDIT INFO PAGE
============================================================ */
.edit-profile-wrapper {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: #f7f7f7;
    border-radius: 8px;
}

.edit-profile-wrapper h2 {
    margin-bottom: 20px;
}

.edit-profile-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.edit-profile-wrapper input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.edit-profile-wrapper small {
    color: #666;
    font-weight: normal;
}

.error-msg {
    color: red;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.warning-msg {
    color: #856404;
    margin-bottom: 15px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #0073aa;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 15px;
}

.changed-field {
    border-color: #f2e818 !important;
    background-color: #fffff0 !important;
}

/* ============================================================
   ACCOUNT PAGE
============================================================ */
.main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.in {
    width: 100%;
}

.flex-btw {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.li li {
    list-style: none;
    margin: 10px 0;
}

.section {
    padding: 50px 8rem;
}

/* ============================================================
   POPUP STYLES
============================================================ */
#update-address-popup,
#yardage-popup,
#shoot-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    border-radius: 5px;
}

#shoot-popup {
    height: 650px;
}

#popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

#update-address-popup input,
#yardage-popup input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.shoot-card {
    border: 1px solid #F3F0E4;
    padding: 15px;
    border-radius: 5px;
    background: #F3F0E4;
    margin-bottom: 15px;
}

.shoots-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Safari & iPad radio visibility */
#yardage-popup input[type="radio"] {
    appearance: radio;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #000;
    cursor: pointer;
}

#yardage-popup label {
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.3;
    gap: 8px;
}

#yardage-popup input[type="number"],
#yardage-popup input[type="text"] {
    font-size: 16px; /* prevents iOS zoom */
}

/* Prevent Safari zoom */
@supports (-webkit-touch-callout: none) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* iPad responsiveness */
@media (max-width: 1024px) {
    #yardage-popup,
    #shoot-popup,
    #update-address-popup {
        width: 90% !important;
        max-width: 500px;
        font-size: 16px;
    }

    .section {
        padding: 10px;
        flex-direction: column;
        gap: 11px;
    }
}

/* ============================================================
   MEMBER LOGIN PAGE
============================================================ */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    flex: 1;
    background-image: url('/wp-content/uploads/2025/03/3c5081354baadba3362f09de0fd13c2b-1024x700.jpg');
    background-size: cover;
    background-position: center;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #f9f9f9;
}

.auth-form {
    max-width: 400px;
    width: 100%;
    padding: 25px 30px;
}

.auth-form h2 {
    margin-bottom: 25px;
    color: #000;
    font-size: 30px;
    font-weight: 600;
    font-family: "Playfair Display", sans-serif;
}

.auth-form input {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.auth-form button {
    background-color: #f2e818;
    color: #000 !important;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-form button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.auth-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.error-msg,
.success-msg,
.warning-msg {
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.error-msg { color: red; }
.success-msg { color: green; }
.warning-msg { color: red; margin-top: 15px; }

.back-btn {
    background: transparent !important;
    color: #666 !important;
    border: 1px solid #ccc !important;
    margin-top: 10px;
}

.resend-otp {
    text-align: center;
    margin-top: 15px;
}

.resend-otp a {
    color: #0066cc;
    cursor: pointer;
    text-decoration: underline;
}

.button-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.button-text {
    vertical-align: middle;
}

/* Hide empty error or success boxes */
#errorBox:empty,
#loginErrorBox:empty,
#successBox:empty {
    display: none;
}

/* Consistent placement & spacing */
#errorBox,
#loginErrorBox,
#successBox {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
}

#errorBox,
#loginErrorBox {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #a94442;
}

#successBox {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-left {
        height: 200px;
    }

    .auth-form {
        padding: 20px;
    }
}
