/* ---- base ---- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #000;
}

.signup-step {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding: 50px 20px 20px;
    box-sizing: border-box;
}

h2 {
    font-size: 24px;
    margin: 0 0 10px;
}

p {
    font-size: 16px;
    margin: 15px 0 20px;
}

/* form inputs, textareas */
input[type=text],
input[type=file],
input[type=tel],
textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #800000;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* buttons */
.next-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #800000;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}
.next-btn:hover {
    background: #a00000;
}
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    z-index: 10;
    padding: 0;
}
.back-btn i {
    font-size: 20px;
}

/* checkbox group styling */
.age-check {
    display: flex;
    align-items: center;
    font-size: 16px;
    margin-bottom: 25px;
}
.age-check input {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #800000;
    border-radius: 50%;
    margin-right: 12px;
}
.age-check input:checked {
    background: #800000;
}

/* custom radio styles */
.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
}
.radio-group input[type="radio"] {
    display: none;
}
.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #800000;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
}
.custom-radio::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: #800000;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}
.radio-group input[type="radio"]:checked + .custom-radio::after {
    opacity: 1;
}
.radio-label {
    font-size: 16px;
    color: #000;
}

/* ranch-list grid */
#ranch-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.ranch-tile {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ranch-tile img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.ranch-tile:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ranch-tile:hover img {
    transform: scale(1.05);
}
.ranch-tile h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 6px 8px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 13px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

/* special “Add/Join Ranch” tile */
.ranch-tile.add-ranch {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #800000;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    padding-top: 3px !important;
    height: auto !important;
    aspect-ratio: auto !important;
}
.ranch-tile.add-ranch:hover {
    background: #f9f9f9;
    border-color: #a00000;
}
.ranch-tile.add-ranch img {
    display: none;
}
.ranch-tile.add-ranch i.fa-plus {
    font-size: 38px;
    color: #800000;
    position: static !important;
    transform: none !important;
    margin: 0;
}
.ranch-tile.add-ranch h3 {
    margin: 0;
    color: #800000;
    font-size: 18px;
    font-weight: bold;
    background: none;
    backdrop-filter: none;
    text-shadow: none;
    position: static !important;
    transform: none !important;
}

/* terms and consent */
.terms-text,
.consent-text {
    font-size: 13px;
    margin-bottom: 20px;
    color: #444;
}

/* utility */
.resend-link {
    text-align: center;
    display: block;
    margin: 10px 0;
    color: #63a8ff;
    font-weight: 600;
    text-decoration: none;
}
.readonly-display {
    padding: 12px;
    border: 2px solid #800000;
    border-radius: 10px;
    font-size: 16px;
    color: #333;
    word-break: break-word;
    margin-bottom: 20px;
}

/* final confirmation */
#step11 p {
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
}
#finish-btn {
    margin-top: 30px;
}

/* enlarge the Next button on this screen */
#action-next {
    margin-top: 30px;
    padding: 16px;
    font-size: 18px;
    border-radius: 24px;
}

/* STEP 3 – Profile‐image overlay */
.upload-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 20px auto 30px;
    border: 2px solid #800000;
    border-radius: 50%;
    overflow: hidden;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s;
}
.upload-container:hover {
    border-color: #a00000;
}
.upload-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    transition: opacity 0.2s;
    opacity: 1;
}
.upload-container.has-image .upload-text {
    opacity: 0;
}
.upload-container.has-image:hover .upload-text {
    opacity: 1;
}
.upload-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    pointer-events: none;
    transition: background 0.2s;
}
.upload-container.has-image::before {
    background: rgba(0,0,0,0);
}
.upload-container input[type="file"] {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
    opacity: 0;
    cursor: pointer;
}
.profile-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
