/* Basic Layout */
.input-area-wrapper {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    /*background-color: #f9f9f9;*/
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/*.input-fields-wrapper {*/
/*    margin-bottom: 15px;*/
/*}*/

label {
    display: block;
    font-weight: bold;
    color: #ddd;
    margin-top: 6px;
}

input[type="text"], input[type="email"], input[type="date"],select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    width: 100%;
}


.hiddenIpt {
    display: none;
}

.hidden {
    display: none;
}

/* Forest-Themed Button Styling */
.option-button, .validation-btn {
    display: inline-block;
    padding: 8px 12px;
    margin-right: 5px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid #3d5432; /* Slightly darker green border */
    background: linear-gradient(145deg, #5b7a47, #3d5432); /* Leafy gradient effect */
    color: #f0efe9; /* Soft off-white text */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    transition: all 0.3s ease-in-out;
}

.option-button:hover, .validation-btn:hover {
    background: linear-gradient(145deg, #6d8a58, #4c6a3e); /* Lighter hover gradient */
    color: #ffffff; /* Brighten text */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); /* Darker shadow on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

.option-button.selected {
    background: #3d5432; /* Darker green for selected state */
    border: 3px solid #d8e28c; /* Bright green border for contrast */
    color: #f0ffbf; /* Light yellow-green text */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4), 0 0 15px #d8e28c; /* Stronger shadow and glowing border */
    transform: scale(1.05); /* Slightly larger size to emphasize selection */
}

.option-button.disabled {
    background: #a8b6a1; /* Muted gray-green background */
    color: #dcdcdc; /* Soft gray text */
    border: 2px solid #8e9a89; /* Subtle border for differentiation */
    cursor: not-allowed; /* Indicate disabled state */
    box-shadow: none; /* Remove shadow for a flat look */
    opacity: 0.6; /* Slight transparency */
}


.answer-btn.validation-btn {
    width: 90%;
    padding: 8px 8px;
    margin: 12px auto 0 auto;
    font-weight: bold;
    font-size: 18px;
    background-color: #6a8e58;  /* Light forest green */
    border: 2px solid #5b7a47;
    z-index: 999;
}

/* Layout Adjustments */
.select-fields-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.select-fields-wrapper.fd-col {
    flex-direction: column;
}

/* Wrapper for country code and phone number */
.phone-wrapper {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping of child elements */
  align-items: center; /* Optional: Align items for consistent layout */
  gap: 8px; /* Optional: Add spacing between items */
}

/* Country code input */
.country-code {
    width: 48px;  /* Fixed width for country code */
    max-width: 48px;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    /* Prevent it from stretching */
}

/* Phone number input */
.phone-no {
    flex: 1;  /* Allow phone number input to take the remaining space */
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 10px;  /* Space between country code and phone number */
}

/* Error message styling */
.error-message {
    flex-basis: 100%; /* Forces the element to take up an entire row */
  width: 100%; /* Ensures it spans the full width */
  font-size: 0.7em;   /* Slightly smaller text for the error message */
  color: rgba(255,0,0,0.9);           /* Red color for error */
  margin: 0;      /* Adds some space above the error message */
  display: block;       /* Forces the span to be a block element, ensuring it appears on a new line */
  font-weight: bold;    /* Make the error text bold for emphasis */
  width: 100%;          /* Ensure it takes up full width to break the line */
  clear: both;
}

/* Visibility handling for address fields */
.hidden {
    display: none;
}

/* Optional: Style for input fields with validation errors */
input.invalid {
  border: 2px solid red;  /* Adds a red border to invalid inputs */
}

input:valid {
  border: 2px solid green; /* Green border for valid inputs (optional) */
}

/* Style for the copy link container */
.copy-link-container {
    margin: 20px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    color:black;
}

/* Style for the input and copy button */
.copy-link-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.copy-link-box input {
    width: 60%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.copy-link-box button {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.copy-link-box button:hover {
    background-color: #0056b3;
}

/* Styling for the participant list */
#plist {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

#plist li {
    background: #e3f2fd;
    color:black;
    padding: 10px;
    padding-left: 5%;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}
