:root {
    --primary-color: #4DA1A9;
    --secondary-color: #F6F4F0;
    --accent-color: #2E5077;
    --text-color: #333333;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    max-width: 700px;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.card-title {
    color: var(--accent-color);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(77, 161, 169, 0.15);
    outline: none;
}

/* Custom Dropdown Styling */
.phone-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.phone-input-group .form-control {
    flex: 1;
    min-width: 0;
}

.custom-dropdown {
    position: relative;
    width: 120px;
    flex: none;
}

.dropdown-selected {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.3s;
    height: 46px;
    /* Match Bootstrap input height approx */
}

.dropdown-selected:after {
    content: '\25BC';
    font-size: 10px;
    color: #888;
    margin-left: 8px;
}

.custom-dropdown.open .dropdown-selected {
    border-color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.custom-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-search {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    outline: none;
}

.dropdown-options {
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f0f4ff;
}

.dropdown-item .flag {
    font-size: 18px;
}

.dropdown-item .country-name {
    flex: 1;
    color: #333;
}

.dropdown-item .dial-code {
    color: #999;
    font-size: 12px;
}

/* Radio Buttons */
.btn-check:checked+.btn-outline-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #3b8b92;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(77, 161, 169, 0.3);
}

.submit-btn.disabled-state {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn.disabled-state:hover {
    background-color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.page-title {
    text-align: center;
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 30px;
}

/* Remove validation styling from the optional message field */
.was-validated #message:valid,
#message.is-valid {
    border-color: #e0e0e0 !important;
    padding-right: 15px !important;
    background-image: none !important;
    box-shadow: none !important;
}

.was-validated #message:valid:focus,
#message.is-valid:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(77, 161, 169, 0.15) !important;
}