.spm-input {
    padding-right: 40px;
    /* space for eye icon */
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: 0.3s ease;
}

.spm-input:focus {
    border-color: #ff6b00;
    box-shadow: 0 0 5px rgba(255, 107, 0, 0.3);
}

.toggle-password {
    position: absolute;
    top: 70%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 18px;
    z-index: 10;
}

.toggle-password:hover {
    color: #ff6b00;
}

/* Add inside your CSS file */
.spm-login-card {
    border: 2px dotted #aaa;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.spm-login-card .spm-required-label {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff8f0;
    padding: 2px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #d9534f;
    border: 1px dashed #d9534f;
    border-radius: 20px;
}

.toggle-password {
    position: absolute;
    top: 38px;
    right: 12px;
    cursor: pointer;
    color: #999;
}

.spm-outline-btn {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.spm-outline-btn:hover {
    background: #007bff;
    color: #fff;
}

.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.spm-outline-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #e84a28;
    /* Primary theme color */
    border: 1px dotted #e84a28;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.4s ease-in-out;
    width: 100%;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    /* Yellow to red */
    background-origin: border-box;

    position: relative;
    z-index: 1;
}

.spm-outline-btn:hover {
    color: #fff;
    background: linear-gradient(to bottom, #f9a825, #e84a28);
    /* Same gradient on hover but filled */
    box-shadow: 0 0 10px rgba(232, 74, 40, 0.5);
}

.spm-heading {
    font-size: 20px;
    font-weight: 600;
    color: #a3145a;
    /* Maroon matrimonial theme */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.spm-floating-group {
    position: relative;
    margin-bottom: 20px;
}

.spm-floating-input {
    width: 100%;
    padding: 16px 12px 8px;
    border: 2px dotted #e84a28;
    border-radius: 10px;
    background-color: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.spm-floating-group label {
    position: absolute;
    top: -10px;
    left: 16px;
    background-color: #fff;
    padding: 0 6px;
    font-size: 13px;
    color: #520f10;
    font-weight: 600;
    z-index: 1;
}

.spm-floating-input::placeholder {
    color: #999;

    font-size: 14px;
}

.spm-floating-link {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: #e84a28;
    background-color: transparent;
    border: 2px dotted #e84a28;
    border-radius: 10px;
    text-decoration: none;
    /* text-transform: uppercase; */
    transition: all 0.3s ease-in-out;
    position: relative;

    background-image: linear-gradient(to bottom, #fff, #fff);
}

.spm-floating-link:hover {
    color: #fff;
    background: linear-gradient(to right, #e84a28, #a3145a);
    box-shadow: 0 0 10px rgba(163, 20, 90, 0.4);
}

.spm-floating-group label[for="btn-reg-link"] {
    position: absolute;
    top: -10px;
    left: 16px;
    background-color: #fff;
    padding: 0 6px;
    font-size: 13px;
    color: #520f10;
    font-weight: 600;
    z-index: 1;
}

/* Green dotted border on input/select/textarea focus */
.spm-floating-input:focus,
.spm-input:focus,
select:focus,
textarea:focus {
    border: 2px dotted #28a745 !important;
    outline: none;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}

/* For checkbox and radio when selected */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    outline: none;
    box-shadow: 0 0 0 2px #28a745;
    border: 2px dotted #28a745;
    background-color: #28a745;
}

/* Optional: if you wrap checkbox in label or .form-check */
.form-check-input:checked {
    border: 2px dotted #28a745;
    background-color: #28a745;
}

.spm-floating-group input:focus+label,
.spm-floating-group select:focus+label {
    color: #28a745 !important;
}


.spm-field-filled {
    border: 2px dotted #28a745 !important;
    box-shadow: 0 0 6px rgba(0, 128, 0, 0.3);
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.tick-icon {
    /* opacity: 0; */
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
    color: green;
    margin-left: 5px;
}

.tick-icon.visible {
    opacity: 1;
    transform: scale(1);
}

.spm-input-prefix {
    padding: 8px 12px;
    background-color: #eee;
    font-weight: bold;
    color: #333;
    border-right: 1px solid #ccc;
    white-space: nowrap;
}

.spm-check-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.spm-check-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 2px;
}

.spm-check-wrapper label {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.spm-check-wrapper .tick-icon {
    display: none;
    color: green;
    font-size: 16px;
    margin-left: 8px;
    vertical-align: middle;
}

.spm-check-wrapper.checked label {
    color: green;
}

.spm-img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
    border: 1px dotted #e84a28;

    object-position: top center;
    border-bottom: 4px solid #fff3e0;
    pointer-events: none;
    user-select: none;
    display: block;
}

.spm-img:hover {
    border: 1px dotted #e84a28;

    transform: scale(1.02);
    /* Slight zoom on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    /* Enhanced shadow on hover */
}

.note-text {
    font-size: 10px;
    color: #e84a28;
    margin-top: 4px;
    text-align: center;
    margin-bottom: 4px;
}
