/* Global Styles for Integrate v2 Design */

:root {
    --integrate-pink-dark: #f05a8d; /* A softer, more modern pink */
    --integrate-pink-light: #fce1e8; /* Lighter background/border */
    --integrate-pink-bg: #fdeaf0; /* Misty Rose, for background spots */
    --integrate-orange-light: #fff0e0; /* Lighter orange for donation */
    --integrate-orange-dark: #e67e22; /* Softer orange for donation text */
    --integrate-white: #FFFFFF;
    --integrate-gray-text: #555555; /* Softer gray */
    --integrate-border-light: #fccddc; 
    --integrate-red-error: #e74c3c;
    --integrate-green-success: #2ecc71;
}

html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Helvetica Neue', sans-serif; /* A modern, rounded font */
    background-color: var(--integrate-pink-dark);
    color: var(--integrate-gray-text);
    padding-top: 85px; /* Added padding to push content below the absolute header */
    position: relative;
    min-height: 100vh;
}

/* Background dots effect - using pseudo-elements on body/html */
body::before, body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow interaction with content below */
    background-repeat: repeat;
    background-size: 40px 40px; /* Size of dots */
    opacity: 0.2; /* Semi-transparent */
    z-index: -1; /* Behind content */
}

body::before {
    background-image: radial-gradient(circle at 10px 10px, var(--integrate-pink-bg) 5px, transparent 0);
}

/* General container style */
.container-v2 {
    background-color: var(--integrate-white);
    border-radius: 25px; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin: 0 auto 20px auto; /* Top margin handled by body padding */
    padding: 25px; 
    width: 90%; 
    max-width: 480px; 
    border: 3px solid var(--integrate-pink-light);
}

/* Header and Navigation (Global for v2) */
.header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%; /* Use percentage for responsive padding */
    background-color: var(--integrate-pink-dark);
    position: fixed; /* Fixed position stays on top during scroll */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-v2 .logo-text {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--integrate-white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    text-decoration: none; /* Ensure logo is not underlined */
}

.header-v2 .logo-text:hover {
    text-decoration: none; /* Ensure logo is not underlined on hover */
}

.header-v2 .create-new-button {
    background-color: var(--integrate-white);
    color: var(--integrate-pink-dark);
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease-in-out;
    border: 2px solid var(--integrate-pink-light);
}

.header-v2 .create-new-button:hover {
    transform: scale(1.05);
}

.header-v2 .create-new-button .arrow {
    margin-left: 8px;
    font-size: 1.2em;
}

/* Form specific styles for v2 */
.form-v2 h1 {
    text-align: center;
    color: var(--integrate-pink-dark);
    font-size: 1.6em;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.form-group-v2 {
    margin-bottom: 18px;
}

.form-group-v2 label {
    display: block;
    font-size: 0.95em;
    color: var(--integrate-pink-dark);
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group-v2 input[type='text'],
.form-group-v2 input[type='email'],
.form-group-v2 input[type='password'],
.form-group-v2 input[type='date'],
.form-group-v2 input[type='time'],
.form-group-v2 input[type='datetime-local'],
.form-group-v2 input[type='number'],
.form-group-v2 select,
.form-group-v2 textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--integrate-border-light);
    border-radius: 12px; /* Even more rounded */
    background-color: #fcfcfc;
    color: var(--integrate-gray-text);
    font-size: 1.0em;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease-in-out;
}

.form-group-v2 input:focus,
.form-group-v2 select:focus,
.form-group-v2 textarea:focus {
    border-color: var(--integrate-pink-dark);
    outline: none;
    box-shadow: 0 0 8px rgba(240, 90, 141, 0.2);
}

.form-group-v2 textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group-v2 small {
    font-size: 0.85em;
    color: var(--integrate-gray-text);
    margin-top: 5px;
    display: block;
}

.coordinate-pair-v2, .age-filter-pair-v2 {
    display: flex;
    gap: 15px; /* Spacing between coordinate inputs */
}

.coordinate-pair-v2 .form-group-v2,
.age-filter-pair-v2 .form-group-v2 {
    flex: 1; /* Distribute space evenly */
}

/* Participants group */
.participants-group-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.participants-group-v2 span {
    font-size: 1.0em;
    color: var(--integrate-gray-text);
    font-weight: bold;
}

.participants-group-v2 select {
    flex-grow: 0;
    width: auto; /* Allow select to size to content */
    padding: 8px 12px;
}

/* Checkbox style */
.checkbox-group-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1; /* Allow it to take available space */
}

.checkbox-group-v2 input[type='checkbox'] {
    width: 20px;
    height: 20px;
    border: 2px solid var(--integrate-border-light);
    border-radius: 5px; /* Slightly rounded checkbox */
    appearance: none; /* Hide default checkbox */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.checkbox-group-v2 input[type='checkbox']:checked {
    background-color: var(--integrate-pink-dark);
    border-color: var(--integrate-pink-dark);
}

.checkbox-group-v2 input[type='checkbox']:checked::after {
    content: '\2713'; /* Checkmark symbol */
    color: var(--integrate-white);
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-group-v2 label {
    font-weight: normal; /* Labels typically not bold for checkboxes */
    margin-bottom: 0;
    color: var(--integrate-gray-text);
    font-size: 0.95em;
    cursor: pointer;
}

/* Donation & Reservation Section */
.donation-reservation-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.donation-circle-v2 {
    background-color: var(--integrate-orange-light);
    border-radius: 50%;
    width: 80px; /* Adjusted size */
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--integrate-orange-dark);
    flex-shrink: 0; /* Prevent shrinking */
}

.donation-circle-v2 span {
    color: var(--integrate-orange-dark);
    font-weight: 700;
}
.donation-circle-v2 .label {
    font-size: 0.7em;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.donation-circle-v2 .amount {
    font-size: 1.5em;
    line-height: 1;
}

/* Main Action Button */
.button-main-action-v2 {
    width: 100%;
    padding: 15px;
    background-color: var(--integrate-pink-dark);
    color: var(--integrate-white);
    border: none;
    border-radius: 30px; /* Pill shape */
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px; /* Space after form */
}

.button-main-action-v2:hover {
    background-color: #E056A0; /* Slightly lighter pink on hover */
    transform: translateY(-2px);
}

/* Small link at the bottom */
.bottom-link-v2 {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: var(--integrate-gray-text);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
}

.bottom-link-v2:hover {
    color: var(--integrate-pink-dark);
    text-decoration: underline;
}

/* Error messages */
.error-message-v2 {
    color: var(--integrate-red-error);
    background-color: rgba(var(--integrate-red-error), 0.1);
    border: 1px solid var(--integrate-red-error);
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
}

.header-v2 .user-actions {
    display: flex;
    align-items: center;
    gap: 5px; /* Spacing between nav links */
}

.header-v2 .nav-link-v2 {
    color: var(--integrate-white);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9em;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: 2px solid transparent;
}

.header-v2 .nav-link-v2:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.header-v2 .nav-link-v2.auth-link {
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.5);
}

.header-v2 .nav-link-v2.auth-link.filled {
    background-color: var(--integrate-white);
    color: var(--integrate-pink-dark);
} 